<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active" ng-if="t=='10'">早报列表</li>
    <li class="active" ng-if="t!='10'">资讯列表</li>
  </ol>
  <table class="table table-striped table-hover">
    <thead>
      <tr style="">
        <th width="40">ID</th>
        <th width="300" ng-if="t!=10">标题</th>
        <th width="300" ng-if="t==10">早报日期</th>
        <th width="400" ng-if="t==10">今日热点</th>
        <th width="200" ng-if="t!=10">资讯类型</th>
        <th width="100" ng-if="t!=10">优先级</th>
        <th width="400">{{t==10?"资讯快览":"正文"}}</th>
        <th width="80">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="m in msgs">
        <td>{{m.id}}</td>
        <td ng-if="t!=10">{{m.title}}</td>
        <td ng-if="t==10">{{m.publicDate|limitTo:10}}</td>
        <td ng-if="t==10">
        <div style="width:100%; overflow: hidden; height: 35px;">{{m.topContent}}</div></td>
        <td ng-if="t!=10">{{m.type | adMsgTypeRender}}</td>
        <td ng-if="t!=10">{{m.sort | messageSortRender}}</td>
        <td>
          <div style="width:100%; overflow: hidden; height: 35px;">{{m.contents}}</div>
        </td>
        <td>
          <a href="" ng-click="delete(m.id)">删除</a>
          <a href="#/ad/msg-update?id={{m.id}}&t={{t}}">修改</a>
        </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="msgs.length > 0"></div>
</div>
